package org.beynet.docs.helpers;

import java.util.Iterator;

import javax.xml.XMLConstants;
import javax.xml.namespace.NamespaceContext;

public class GDocsAtomNameSpaceContext implements NamespaceContext {
    @Override
    public String getNamespaceURI(String prefix) {
        if (prefix == null) throw new IllegalArgumentException("Null prefix");
        else if ("atom".equals(prefix)) return "http://www.w3.org/2005/Atom";
        else if ("openSearch".equals(prefix)) return "http://a9.com/-/spec/opensearch/1.1/";
        else if ("docs".equals(prefix)) return "http://schemas.google.com/docs/2007";
        else if ("gd".equals(prefix)) return "http://schemas.google.com/g/2005";
        else if ("xml".equals(prefix)) return XMLConstants.XML_NS_URI;
        return XMLConstants.NULL_NS_URI;
    }

    @Override
    public String getPrefix(String arg0) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public Iterator<String> getPrefixes(String arg0) {
        // TODO Auto-generated method stub
        return null;
    }
}
